import axios from '@/axios'

// 图库列表
export const getImageListAPI = (id, page = 1) => {
  return axios.get(`/admin/image_class/${id}/image/${page}`)
}

// 修改图片名称
export const updateImageListAPI = (id, name) => {
  return axios.post(`/admin/image/${id}`, { name })
}
// 删除图片
export const deleteImageListAPI = (ids) => {
  return axios.post(`/admin/image/delete_all`, { ids })
}

// 上传图片地址
export const uploadImageActionAPI = '/api/admin/image/upload'
